let http = require('http')
let server = http.createServer((req,res)=>{
    res.setHeader('Content-Type','text/html;charset=utf-8')
    if(req.url == '/favicon.ico'){
        return;
    }else if(req.url == '/' || req.url == '/index/index'){
        res.end('首页');
    }else if(req.url == '/index/login'){
        res.end('登录');
    }else if(req.url == '/index/reg'){
        res.end('注册');
    }else if(req.url == '/order/goods'){
        res.end('商品列表');
    }else{
        res.end('404 找不到该网页');
    }
})
server.listen(3000,'www.ccc.com')